<?= View::factory('pieces/left_body', array('catalog' => $catalog, 'parent_id' => $parent_id, 'type' => 0)) ?>
<div class="right_body">
	<div class="right_body_cont">
		<h1><?= $category->title ?></h1>
		<? $image = $category->image; if (!empty($image)): ?>
			<img src="<?= URL::site('static/uploads/categories/'.$category->image) ?>" alt="" style="width: 680px; margin-bottom: 30px">
		<? endif ?>
		<p><?= $category->text ?></p>
		<? if (count($decors) != 0): ?>
			<h1><?= $sitetext['catalog_decors']['_value'] ?> "<?= $category->title ?>"</h1>
		<? endif ?>
		<? foreach ($decors as $key => $item): ?>
			<? if (($key + 1) % 3 == 0) ?>
			<div class="catalog_cont" <?= (($key + 1) % 3 == 0) ? 'style="margin-right: 0"' : '' ?>>
				<img src="<?= URL::site('static/uploads/decors/normal/'.$item->image) ?>" alt="" class="catalog_image" />
				<span style="color: #5A872D"><?= $item->title ?></span>
				<p><?= $item->code ?></p>
				<?= $item->new == 1 ? '<span class="new">New</span>' : '' ?>
			</div>
		<? endforeach ?>
	</div>
</div>